import React, { useState } from "react"


function App() {
  const [count, setCount] = useState(0)
  const [isSex, setIsSex] = useState(true)

  const handle = () => {
    setCount(count + 1)
    setIsSex(!isSex)
  }
  

  return (
    <div>
      <h1>点击{count}</h1>
      <p>{isSex?'男':'女'}</p>
      <button onClick={handle}>加加加</button>
    </div>

  )
}

export default App;
